package org.hibiscus.jdp.app.dbdoc;

import org.apache.commons.lang3.StringUtils;
import org.hibiscus.jdp.app.dbdoc.mysql.MySQLTableStructureDoc;

import static org.hibiscus.jdp.app.dbdoc.DbTypeConstants.MYSQL;

/**
 * Description: 表结构文档工厂
 *
 * @author 然诺
 * @date 2019/8/12
 */
public class TableStructureDocFactory {

	public static TableStructureDoc getTableStructureDoc(String dbType) {
		if (StringUtils.isBlank(dbType)) {
			return null;
		}
		if (MYSQL.equalsIgnoreCase(dbType)) {
			return new MySQLTableStructureDoc();
		}
		return null;
	}

}
